<script lang="ts" setup name="Child">
    import { ref } from 'vue';
    import axios from 'axios';

    let sum = ref(0);

    let xxx = await axios.get('https://api.uomg.com/api/rand.qinghua?format=json');
    console.log(xxx);
</script>

<template>
    <div class="child">
        <h2>Child组件</h2>
        <p>sum: {{ sum }}</p>
    </div>
</template>

<style scoped>
    .child {
        background-color: skyblue;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 0 10px;
    }
</style>